<template>
  <div class="login-container">
    <div class="login-form">
      <h2>{{ $t('login.title') }}</h2>
      
      <!-- 功能取消提示消息 -->
      <div class="message-container">
        <p>{{ $t('login.featureDisabled') }}</p>
        <p>{{ $t('login.welcomeMessage') }}</p>
      </div>
      
      <button class="back-button" @click="goToHome">
        {{ $t('login.backToHome') }}
      </button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Login',
  methods: {
    // 返回首页
    goToHome() {
      this.$router.push('/');
    }
  }
};
</script>

<style scoped>
/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 登录容器样式 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
}

/* 渐变背景动画 */
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 登录表单样式 */
.login-form {
  background: white;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* 标题样式 */
.login-form h2 {
  margin-bottom: 30px;
  color: #333;
  font-size: 28px;
  font-weight: 600;
}

/* 消息容器样式 */
.message-container {
  margin-bottom: 30px;
}

.message-container p {
  margin-bottom: 15px;
  color: #666;
  line-height: 1.6;
}

/* 返回首页按钮样式 */
.back-button {
  width: 100%;
  padding: 14px;
  background-color: #c20c0c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.back-button:hover {
  background-color: #a10a0a;
  transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 480px) {
  .login-form {
    padding: 25px;
    margin: 20px;
  }
  
  .login-form h2 {
    font-size: 24px;
  }
}
</style>